#ifndef _ADC_FUN_H
#define _ADC_FUN_H
#include "main.h"

#define ADC_ACH 0 
#define ADC_BCH 1
#define ADC_CCH 2
#define OFFSET_LEN 150

#define SECTOR_1  1
#define SECTOR_2  2
#define SECTOR_3  3
#define SECTOR_4  4
#define SECTOR_5  5
#define SECTOR_6  6

extern float sent_to_test[3];
extern uint8_t off_set_flag;

typedef struct{
	float _FA_adc;
	float _FB_adc;
	float _FC_adc;
	float _Pow_adc;
	float _Tem_adc;
}F_adc_data_t;

extern uint16_t adc_dma_data[2] ;
extern uint16_t adc_inj_data[3] ;
extern F_adc_data_t F_adc_data;
void updata_adc_val(void);
#endif 
